/**
* Copyright (c) 2016-2100 yunclouds
*/
package com.yunqian.web;

import com.yunqian.redot.domain.view.OperationLogInfo;
import com.yunqian.redot.service.OperationLogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;


/**
 * Describe: 控制器
 *
 * @author zsy
 * 2018-11-08 18:30:44
 */
 @RestController
 @RequestMapping("/api/operationLog")
public class OperationLogController {

     @Autowired
     private OperationLogInfoService operationLogInfoService;

    /**
     * 获取分页
     *
     * @param params
     * @return
     */
    @PostMapping("/pagination")
    public Page<OperationLogInfo> pagination(@RequestBody Map<String, Object> params) {
        return operationLogInfoService.pagination(params);
    }

}
